<?php

class location{
	public function getCountries(){
		$query="SELECT * FROM countries";
		$result=mysql_query($query) or die (mysql_error());
		while ($countries=mysql_fetch_array($result))
		{
			echo '<options>'.$countries['name'].'</options>';
		}
	}
}
$location_obj=new location();